// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ValidatorForm.java

package include.validator;


// Referenced classes of package include.validator:
//			ValidatorField

public class ValidatorForm
{

	private ValidatorField fields[];
	private String name;

	public ValidatorForm()
	{
	}

	public ValidatorField[] getFields()
	{
		return fields;
	}

	public void setFields(ValidatorField argFields[])
	{
		fields = argFields;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String argName)
	{
		name = argName;
	}

	public ValidatorField findFieldByName(String fieldName)
	{
		for (int i = 0; i < fields.length; i++)
			if (fields[i].getName().equals(fieldName))
				return fields[i];

		return null;
	}
}
